Beautiful town Building, a little story is worth remembering.6379 Merz The corresponding number on the phone keypad, and Merz was taken from the Italian girl Alessia Merz's name.Merz has long been synonymous with Antirez and his friends as stupidity.NND It is too much to belittle him!!Appendix:how to remember the Redis port numberToday on Twitter I saw a tweet re
Tags: interactive connection Sharing str etc fuse customer runCould not connect to Redis at 127.0.0.1:6379:connection refused1. Locate redis.conf and modify Daemonize No to daemonize Yes so you can run the background by default[Email protected] trade01 conf.d]# vi/etc/redis.conf2. Turn on the client to ensure server-side startup[Email protected] trade01 src]#./redis
Could not connect to Redis at 127.0.0.1:6379:connection refused
[Root@rongle bin]# redis-cli
Could not connect to Redis at 127.0.0.1:6379:connection refused
[Root@rongle/]# Red is-server/etc/redis.conf
[root@rongle/]# redis-cli
Tags: keyword--synchronous loading targe out technology OSS based on1. The Redis recovery mechanism
If only AOF is configured, the AOF file recovery data is loaded when the reboot is restarted;
If both RDB and AOF are configured, the boot is only loaded with AOF file recovery data;
If only the RDB is configured, startup is the load dump file to recover the data.
2. Recovering data from AoF1 Note the following configurationyesdir
introduction of Redis package in Project
Download the jar package and import your own project based on the jar package path given in the previous article. (Jedis-2.7.2.jar)
second, connect with Redis
(1) Connection IP and port number, connection password modification
By Redis the IP address and
avoids excessive latency spikesAof-rewrite-incremental-fsync Yes
Start:./REDIS-CLI redis.conf
To start a client with a configuration file
multiple Redis instances need to be started:A Redis server, divided into multiple nodes, each node assigned a port (6380,6381 ...) ), the default
#包含通用配置Include/etc/redis/redis-common.conf#监听tcp端口Port 16380#最大可用内存MaxMemory 100m#内存耗尽时采用的淘汰策略:# VOLATILE-LRU, remove the key with a expire set using an LRU algorithm# ALLKEYS-LRU, remove any key accordingly to the LRU algorithm# volatile-random, remove a random key with an expire set# allkeys-random, remove a random key, any key# Volatile-ttl, remove the key wit
Assigning a new port to RedisTo assign a 8888 port to Redis, proceed as follows:1, $REDIS _home/redis.conf re-copy, renamed to Redis8888.conf.2, open the redis8888.conf configuration file, find the port 6379 line, change
1. Install centos 7. Remember to check the Web server or other tools with full functions during installation. Otherwise, the most basic ifconfig cannot be used.2. Check whether iptables is available under/etc/sysconfig/. Check whether service iptables start can be started normally. If it cannot be started, use root user and Yum-install iptables to install the firewall.3. After installation, there are two ways to allow external access: 1. Disable the firewall chkconfig iptables off (effective aft
The port on the server is always limited, if the Redis server is allocating a zero port in case of large concurrency
2.im service in the server is how to allocate the connection port, a large number of connections, if the temporary port is not enough, whether the other co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.